<?php
/**
 * Created by PhpStorm.
 * User: Edward
 * Date: 2019/5/30
 * Time: 14:18
 */

namespace app\Validate;


class AdminActionValidate  extends BaseValidate {
    protected $rule = [
        'account'=>'require',
//        'password'=>'require',
        'username'=>'require',
        'phone'   =>'require|number',
        'role_id' =>'require|number'
    ];
    protected $message =  [
        'account'=>'缺少账号名称',
//        'password'  =>'缺少密码',
        'username'  =>'缺少员工姓名',
        'phone'     =>'缺少电话号',
        'role_id'     =>'请选择角色',
    ];
}